package com.exchange.web.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author G511677
 * @Description TODO
 * @Date 1/6/2024 下午11:15
 * @Version 1.0
 */
@Data
public class comment implements Serializable {
    //评论id
    @TableId(type = IdType.AUTO)
    int id;

    //评论内容
    String content;

    //评论用户id
    int userId;

    //评论商品id
    int goodId;

    //回复评论id
    int replyId;

    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    Date createDate;
}
